Ext.namespace("Maint.Show64FLOW");

Maint.Show64FLOW.showInfo = function (){
	/* customer flow */
	this.txtTime1860 = new Ext.form.DateField({fieldLabel: '1860派单时间',width: 160,format: 'Y-m-d',disabledDays: [0-6]});
	this.txtMember1860 = new Ext.form.TextField({fieldLabel: '1860派单员',readOnly: true,width: 160 });
	this.txtNetAcceptTime = new Ext.form.DateField({fieldLabel: '网管受理时间',width: 160,format: 'Y-m-d',disabledDays: [0-6]});
	this.txtNetAccept = new Ext.form.TextField({fieldLabel: '网管受理人',readOnly: true,width: 160 });
	this.txtNetReply = new Ext.form.TextField({fieldLabel: '网管回复人',readOnly: true,width: 160 });
	this.txtFinallyReplyDep = new Ext.form.TextField({fieldLabel: '最终回复部门',readOnly: true,width: 160 });
	this.txtFinallyReply = new Ext.form.TextField({fieldLabel: '最终回复人',readOnly: true,width: 160 });
	this.txtDealWith = new Ext.form.TextArea({fieldLabel: '处理过程及结果',readOnly: true,width: 460 });
	this.txtCondition = new Ext.form.TextField({fieldLabel: '条件流程',readOnly: true,width: 460 });
	this.txtPretreatment = new Ext.form.TextArea({fieldLabel: '预处理',readOnly: true,width: 460 });
	
    this.colseButton = new Ext.Button({
		text:"关闭",
		handler: function(){
			this.hide();
		},
		scope:this
	});

	this.customerFlowPanel = new Ext.form.FormPanel({
		title:'扭转过程',
		autoHeight:true,
		autoWidth :true,
		labelWidth: 130,
		labelAlign:'right',
		region:'north',
		layout:'table',
		split:true,
		collapsible: true,
		frame:true,
		layoutConfig:{columns:2},
		style:{algin:'center'},
		items:[
				{layout: 'form',items: [this.txtTime1860 ]}, {layout: 'form',items: [this.txtMember1860 ]},
			    {layout: 'form',items: [this.txtNetAcceptTime ]}, {layout: 'form',items: [this.txtNetAccept ]},
			    {layout: 'form',items: [this.txtNetReply ]}, {layout: 'form',items: [this.txtFinallyReplyDep ]},
			    {colspan: 2,layout: 'form',items: [this.txtFinallyReply ]},
			    {colspan: 2,layout: 'form',items: [this.txtDealWith ]},
			    {colspan: 2,layout: 'form',items: [this.txtCondition ]},
			    {colspan: 2,layout: 'form',items: [this.txtPretreatment ]}
		]
	});

	Maint.Show64FLOW.showInfo.superclass.constructor.call(this,{
		width:650,
		modal:true,
		autoScroll:false,
		closeAction:'hide',
		buttonAlign:'right',
		buttons:[this.colseButton],
		items:[this.customerFlowPanel],
		listeners:{
		}
	});
	
};

Ext.extend(Maint.Show64FLOW.showInfo, Ext.Window, {
	initDes: function(data){
		this.txtTime1860.setValue(data.TIME_1860);
		this.txtMember1860.setValue(data.MEMBER_1860);
		this.txtNetAcceptTime.setValue(data.NET_ACCEPT_TIME);
		this.txtNetAccept.setValue(data.NET_ACCEPT);
		this.txtNetReply.setValue(data.NET_REPLY);
		this.txtFinallyReplyDep.setValue(data.FINALLY_REPLY_DEP);
		this.txtFinallyReply.setValue(data.FINALLY_REPLY);
		this.txtDealWith.setValue(data.DEAL_WITH);
		this.txtCondition.setValue(data.CONDITION);
		this.txtPretreatment.setValue(data.PRETREATMENT);
	}
});